package cn.org.eshow.bean.query;

import java.util.Date;

/**
 * 优惠券查询对象
 */
public class CouponQuery extends BaseQuery {

    public Date startAddTime;//开始添加时间
    public Date endAddTime;//结束添加时间
    public Date startStartTime;//开始开始时间
    public Date endStartTime;//结束开始时间
    public Date startEndTime;//开始结束时间
    public Date endEndTime;//结束结束时间
    public String title;//标题
    public Double minMoney;//最小金额
    public Double maxMoney;//最大金额
    public Double minRequirement;//最小使用条件（订单满多少元使用）
    public Double maxRequirement;//最大使用条件（订单满多少元使用）
    public Integer minTotal;//最小库存
    public Integer stock;//剩余可用库存
    public Integer minStock;//最小剩余可用库存
    public Integer used;//已使用数
    public Integer state;//状态（0未开始，1已使用，-1已过期，2使用中）
    public String states;//状态（0未开始，1已使用，-1已过期，2使用中）
    public Boolean enabled;//是否可用
    public String scope;//使用范围（不限）
    public Integer userId;//用户ID

    public CouponQuery() {
    }

    public CouponQuery(Boolean enabled) {
        this.enabled = enabled;
    }

    public CouponQuery(Boolean enabled, Integer state) {
        this.enabled = enabled;
        this.state = state;
    }

    public CouponQuery(Boolean enabled, String states) {
        this.enabled = enabled;
        this.states = states;
    }

    public CouponQuery(Boolean enabled, String states, Integer minStock) {
        this.enabled = enabled;
        this.states = states;
        this.minStock = minStock;
    }

    public String getStates() {
        return states;
    }

    public void setStates(String states) {
        this.states = states;
    }

    public Date getStartAddTime() {
        return startAddTime;
    }

    public void setStartAddTime(Date startAddTime) {
        this.startAddTime = startAddTime;
    }

    public Date getEndAddTime() {
        return endAddTime;
    }

    public void setEndAddTime(Date endAddTime) {
        this.endAddTime = endAddTime;
    }

    public Date getStartStartTime() {
        return startStartTime;
    }

    public void setStartStartTime(Date startStartTime) {
        this.startStartTime = startStartTime;
    }

    public Date getEndStartTime() {
        return endStartTime;
    }

    public void setEndStartTime(Date endStartTime) {
        this.endStartTime = endStartTime;
    }

    public Date getStartEndTime() {
        return startEndTime;
    }

    public void setStartEndTime(Date startEndTime) {
        this.startEndTime = startEndTime;
    }

    public Date getEndEndTime() {
        return endEndTime;
    }

    public void setEndEndTime(Date endEndTime) {
        this.endEndTime = endEndTime;
    }

    public Double getMinMoney() {
        return minMoney;
    }

    public void setMinMoney(Double minMoney) {
        this.minMoney = minMoney;
    }

    public Double getMaxMoney() {
        return maxMoney;
    }

    public void setMaxMoney(Double maxMoney) {
        this.maxMoney = maxMoney;
    }

    public Double getMinRequirement() {
        return minRequirement;
    }

    public void setMinRequirement(Double minRequirement) {
        this.minRequirement = minRequirement;
    }

    public Double getMaxRequirement() {
        return maxRequirement;
    }

    public String getTitle() {return title;}

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getMinTotal() {
        return minTotal;
    }

    public void setMinTotal(Integer minTotal) {
        this.minTotal = minTotal;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getUsed() {
        return used;
    }

    public void setUsed(Integer used) {
        this.used = used;
    }

    public void setMaxRequirement(Double maxRequirement) {
        this.maxRequirement = maxRequirement;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getMinStock() {
        return minStock;
    }

    public void setMinStock(Integer minStock) {
        this.minStock = minStock;
    }
}